#include "CsvReader.h"
// ## boost
#include<boost/tokenizer.hpp>


namespace jmlib {
	void tokenize(std::vector<std::string>&tokens, const std::string& txt, 
		const char delimiter) {
			boost::tokenizer<boost::escaped_list_separator<char>> 
				t(txt, 
				boost::escaped_list_separator<char>('\\', delimiter, '"'));
			for (auto it = t.begin(), end = t.end(); it != end ;++it) {
				tokens.push_back(*it);
			}
	}
} // namespace jmlib
